package com.event;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;

/**
 * Copyright (c)  by www.leya920.com
 * All right reserved.
 * Create Date: 2021-01-03 10:58
 * Create Author: xuweiwei
 * File Name: MyEvent.java
 * Last version:  1.0
 * Function: //TODO
 * Last Update Date: 2021-01-03 10:58
 * Last Update Log:
 * Comment: //TODO
 **/
public class MyEvent extends ApplicationEvent {

	/**
	 * Create a new ContextStartedEvent.
	 *
	 * @param source the {@code ApplicationContext} that the event is raised for
	 *               (must not be {@code null})
	 */
	public MyEvent(Object source,String message) {
		super(source);
		this.message=message;
	}

	private String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
